package com.example.sportzbreak;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class SignInActivity extends Activity{

	private ImageButton btnFacebook;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.signin_activity);
		
		// Referencias widgets
		btnFacebook = (ImageButton) findViewById(R.id.FacebookBtn);
		
		// Button listener
		btnFacebook.setOnClickListener(new OnClickListener()
		{
			public void onClick(View view){
				LaunchWelcomeActivity();
			}
		});		     
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	public void LaunchWelcomeActivity() {
	    Intent i = new Intent(this, WelcomeActivity.class);
	    startActivity(i);
	}
}
